package com.ruoyi.dynamic.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.dynamic.model.pojo.entity.RoomHeart;
import com.ruoyi.dynamic.model.pojo.request.app.*;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomGameSelResult;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomHeartSelResult;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomHeatResult;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomSetResult;

import java.util.List;

/**
 * <p>
 * 房间心动交友记录 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-12-16
 */
public interface IRoomHeartService extends IService<RoomHeart> {

    /**
     * 开启心动交友游戏
     */
    Long openGame(AppRoomHeartCreateRequest request, Long userId);

    /**
     * 开始发言
     */
    boolean startSay(AppRoomWishCloseRequest request, Long userId);

    /**
     * 结束发言
     */
    boolean overSay(AppRoomWishCloseRequest request, Long userId);

    /**
     * 选择心动人
     */
    boolean selectHeart(AppRoomSelectHeartRequest request, Long userId);

    /**
     * 校验
     */
    RoomHeart verify(Long id);

    /**
     * 查询自己的选择结果
     */
    AppRoomHeartSelResult selResult(AppRoomSelectHeartRequest request, Long userId);

    /**
     * 主播公布此次交友结果
     */
    AppRoomHeartSelResult pubResult(AppRoomPubHeartRequest request, Long userId);

    /**
     * 主播结束交友游戏
     */
    void over(AppRoomPubHeartRequest request, Long userId);

    /**
     * 查询当前活动状态
     */
    AppRoomHeatResult findStatus(AppRoomHeartGetRequest request, Long userId);

    /**
     * 自我介绍完下一步
     */
    void introOver(AppRoomPubHeartRequest request, Long userId);

    /**
     * 自由发言结束
     */
    void makeOver(AppRoomPubHeartRequest request, Long userId);

    /**
     * 心动选择结束下一步
     *
     * @param request
     * @param userId
     */
    void selOver(AppRoomPubHeartRequest request, Long userId);


    /**
     * 测试发送消息
     * @param chatRoomId
     * @param userId
     */
    void sendMessage(String chatRoomId, String userId);

    /**
     * 获取当前游戏结果
     * @param request
     * @return
     */
    List<AppRoomGameSelResult> getResult(AppRoomHeartGetRequest request);


}
